#!/bin/bash

cat >/lianxi/tangqingyu.txt <<EOF
tangqingyu nongda jsj
changsha
21
linux
shell
EOF

stat /lianxi/tangqingyu.txt &>/dev.null && echo "tqy is exists" || echo "tqy is not exists"
